/* uni-app页面样式 */
page {
    background-color: #f8f8f8;
}

/* 页面容器 */
.page {
    /* 柔和的浅色渐变背景 - 从上到下由浅蓝到浅绿 */
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f4fd 50%, #f0f9f0 100%);
    min-height: 100vh;
    padding-bottom: 40rpx;

    .banner-carousel {
        position: relative;
        height: 400rpx;
        width: 100%;
        z-index: 1;
        border-bottom-left-radius: 70rpx;
        border-bottom-right-radius: 70rpx;
        overflow: hidden;

        /* 设置较低的z-index */
        .banner-swiper {
            height: 100%;
            width: 100%;

            .banner-image {
                width: 100%;
                height: 100%;
            }
        }

        /* 顶部导航栏 - 叠加在轮播图上 */
        .navbar-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 40rpx 30rpx 20rpx;
            background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);

            .navbar-title {
                font-size: 36rpx;
                font-weight: 600;
                color: #fff;
                text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.3);
            }

            .navbar-actions {
                display: flex;
                align-items: center;

                .navbar-icon {
                    margin-left: 40rpx;
                    color: #fff;
                    text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.3);
                }
            }
        }
    }

    /* 滚动视图样式 */
    .content-scroll {
        z-index: 15;
        position: relative;
        /* 确保滚动内容区域不会被渐变背景干扰 */
        background-color: transparent;
        width: 100%;
        height: 100%;

        /* 顶部大图轮播背景 */

        /* 搜索区域 */
        .search-section {
            position: relative;
            padding: 30rpx;
            /* 使用半透明背景以融入渐变效果 */
            background-color: rgba(255, 255, 255, 0.95);
            margin-top: 300rpx;
            border-radius: 40rpx;
            margin-left: 40rpx;
            margin-right: 40rpx;
            z-index: 20;
            padding-bottom: 35rpx;
            box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.05);

            .search-bar {
                display: flex;
                align-items: center;
                background-color: #fff;
                border-radius: 30rpx;
                padding: 20rpx 25rpx;
                margin-bottom: 25rpx;
                box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08);
                border: 1rpx solid rgba(0, 0, 0, 0.05);

                .search-icon {
                    margin-right: 15rpx;
                }

                .search-input {
                    flex: 1;
                    font-size: 28rpx;
                    color: #333;
                    background-color: transparent;
                }
            }
            
            /* 日期选择区域 */
            .date-selector {
                display: flex;
                align-items: center;
                justify-content: space-between;
                background-color: #fff;
                border-radius: 30rpx;
                padding: 20rpx 25rpx;
                margin-bottom: 20rpx;
                box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08);
                border: 1rpx solid rgba(0, 0, 0, 0.05);
                
                .date-item {
                    flex: 1;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    padding: 10rpx 0;
                    
                    .date-label {
                        font-size: 24rpx;
                        color: #999;
                        margin-bottom: 5rpx;
                    }
                    
                    .date-value {
                        font-size: 28rpx;
                        color: #333;
                        font-weight: 500;
                    }
                }
                
                .date-separator {
                    margin: 0 20rpx;
                }
            }
            
            /* 位置选择区域 */
            .location-selector {
                display: flex;
                align-items: center;
                background-color: #fff;
                border-radius: 30rpx;
                padding: 25rpx 25rpx;
                margin-bottom: 25rpx;
                box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08);
                border: 1rpx solid rgba(0, 0, 0, 0.05);
                
                .location-icon {
                    margin-right: 15rpx;
                }
                
                .location-text {
                    flex: 1;
                    font-size: 28rpx;
                    color: #333;
                }
                
                .location-arrow {
                    margin-left: 10rpx;
                }
            }
            
            .filter-tags {
                display: flex;
                overflow-x: auto;
                padding-bottom: 10rpx;

                .filter-tag {
                    padding: 12rpx 28rpx;
                    margin-right: 20rpx;
                    background-color: #f8f8f8;
                    border-radius: 25rpx;
                    font-size: 26rpx;
                    color: #666;
                    white-space: nowrap;
                    transition: all 0.2s ease;
                    box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);

                    &.active {
                        background-color: #ff6b81;
                        color: #fff;
                    }
                }
            }
        }

        /* 活动区域 */
        .activity-section {
            margin-top: 40rpx;
            margin-left: 40rpx;
            margin-right: 40rpx;

            .section-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 25rpx;

                .section-title {
                    font-size: 32rpx;
                    font-weight: 600;
                    color: #333;
                }

                .section-more {
                    font-size: 26rpx;
                    color: #999;
                }
            }

            .activity-swiper {
                height: 220rpx;

                .activity-card {
                    position: relative;
                    height: 100%;
                    border-radius: 20rpx;
                    overflow: hidden;

                    .activity-image {
                        width: 100%;
                        height: 100%;
                    }

                    .activity-info {
                        position: absolute;
                        bottom: 0;
                        left: 0;
                        right: 0;
                        background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
                        padding: 20rpx;
                        color: #fff;

                        .activity-title {
                            font-size: 28rpx;
                            font-weight: 600;
                            margin-bottom: 5rpx;
                            display: block;
                        }

                        .activity-desc {
                            font-size: 22rpx;
                            opacity: 0.9;
                            margin-bottom: 10rpx;
                            display: block;
                        }

                        .activity-price {
                            font-size: 24rpx;

                            .price-symbol {
                                font-size: 22rpx;
                            }

                            .price-value {
                                font-size: 36rpx;
                                font-weight: 600;
                                color: #ffd700;
                            }

                            .price-unit {
                                font-size: 20rpx;
                                opacity: 0.8;
                            }
                        }
                    }
                }
            }
        }

        /* 民宿列表区域 */
        .hotel-section {
            margin-top: 40rpx;
            box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.04);
            margin-bottom: 40rpx;

            .section-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 30rpx;

                .section-title {
                    font-size: 32rpx;
                    font-weight: 600;
                    color: #333;
                }

                .sort-options {
                    display: flex;

                    .sort-option {
                        margin-left: 30rpx;
                        font-size: 26rpx;
                        color: #666;

                        &.active {
                            color: #ff6b81;
                            font-weight: 500;
                        }
                    }
                }
            }

            /* 瀑布流布局样式 */
            .waterfall-container {
                display: flex;
                justify-content: space-between;
                margin-top: 20rpx;
                padding: 0 30rpx 40rpx;

                .waterfall-column {
                    width: 48%;
                    display: flex;
                    flex-direction: column;
                    gap: 20rpx;

                    .hotel-card {
                        border-radius: 20rpx;
                        overflow: hidden;
                        background-color: #fff;
                        box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
                        transition: transform 0.2s ease;

                        &:active {
                            transform: scale(0.98);
                        }

                        .hotel-image-container {
                            position: relative;
                            height: 300rpx;

                            .hotel-image {
                                width: 100%;
                                height: 100%;
                            }

                            .hotel-badge {
                                position: absolute;
                                top: 20rpx;
                                left: 20rpx;
                                background-color: #ff6b81;
                                color: #fff;
                                padding: 5rpx 15rpx;
                                border-radius: 15rpx;
                                font-size: 22rpx;
                            }

                            .hotel-favorite {
                                position: absolute;
                                top: 20rpx;
                                right: 20rpx;
                                background-color: rgba(0, 0, 0, 0.3);
                                border-radius: 50%;
                                padding: 10rpx;
                            }
                        }

                        .hotel-info {
                            padding: 20rpx;

                            .hotel-name {
                                font-size: 32rpx;
                                font-weight: 600;
                                color: #333;
                                margin-bottom: 10rpx;
                            }

                            .hotel-tags {
                                display: flex;
                                flex-wrap: wrap;
                                margin-bottom: 15rpx;

                                .hotel-tag {
                                    padding: 5rpx 15rpx;
                                    margin-right: 15rpx;
                                    margin-bottom: 10rpx;
                                    background-color: #f5f5f5;
                                    border-radius: 15rpx;
                                    font-size: 22rpx;
                                    color: #666;
                                }
                            }

                            .hotel-rating {
                                display: flex;
                                align-items: center;
                                margin-bottom: 15rpx;

                                .rating-text {
                                    font-size: 24rpx;
                                    color: #666;
                                    margin-left: 10rpx;
                                }
                            }

                            .hotel-price-row {
                                display: flex;
                                justify-content: space-between;
                                align-items: center;

                                .hotel-price {
                                    font-size: 24rpx;
                                    color: #ff6b81;
                                }

                                .hotel-location {
                                    display: flex;
                                    align-items: center;
                                    font-size: 22rpx;
                                    color: #999;

                                    .location-text {
                                        margin-left: 5rpx;
                                    }
                                }
                            }
                        }
                    }
                }
            }

            /* 加载更多样式 */
            .load-more-container {
                padding: 40rpx 0;
                display: flex;
                justify-content: center;
                align-items: center;

                .loading-indicator {
                    display: flex;
                    align-items: center;
                    justify-content: center;

                    .loading-text {
                        margin-left: 15rpx;
                        font-size: 28rpx;
                        color: #999;
                    }
                }

                .no-more {
                    font-size: 28rpx;
                    color: #999;
                    text-align: center;
                }
            }
        }
    }
    
    /* 位置选择器弹窗样式 */
    .location-picker-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        
        .location-picker-content {
            width: 80%;
            max-width: 500rpx;
            background-color: #fff;
            border-radius: 30rpx;
            overflow: hidden;
            box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.15);
            
            .location-picker-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 30rpx;
                border-bottom: 1rpx solid #eee;
                
                .location-picker-title {
                    font-size: 32rpx;
                    font-weight: 600;
                    color: #333;
                }
                
                .location-picker-close {
                    padding: 10rpx;
                }
            }
            
            .location-picker-body {
                max-height: 500rpx;
                overflow-y: auto;
                
                .location-item {
                    padding: 30rpx;
                    font-size: 30rpx;
                    color: #333;
                    border-bottom: 1rpx solid #f5f5f5;
                    text-align: center;
                    transition: background-color 0.2s ease;
                    
                    &:last-child {
                        border-bottom: none;
                    }
                    
                    &:active {
                        background-color: #f8f8f8;
                    }
                }
            }
        }
    }
}